<?
$main_menu=strtolower($this->uri->segment(2));
$_menu1="";
$_menu2="";
$_menu3="";
$_menu4="";
$_menu5="";
$_menu6="";
$_menu7="";
if ($main_menu=="performance")
    $_menu1="class=\"active\"";
else if ($main_menu=="datacenters" || $main_menu=="datacenter_do")
    $_menu2="class=\"active\"";
else if ($main_menu=="vip" || $main_menu=="vip_do")
    $_menu3="class=\"active\"";
else if ($main_menu=="servers" || $main_menu=="servers_do")
    $_menu4="class=\"active\"";
else if ($main_menu=="monitors" || $main_menu=="monitors_do")
    $_menu5="class=\"active\"";
else if ($main_menu=="hosts")
    $_menu6="class=\"active\"";
else if ($main_menu=="check")
    $_menu7="class=\"active\"";
echo "          <div id=\"sidebar\">\n";
echo "                 <ul class=\"sideNav\">\n";
echo "                  <li><a href=\"/lvs/Performance/lvsip\" ".$_menu1.">性能图表</a></li>\n";
echo "                  <li><a href=\"/lvs/DataCenters\" ".$_menu2.">数据中心</a></li>\n";
echo "                  <li><a href=\"/lvs/VIP\" ".$_menu3.">虚拟IP池</a></li>\n";
echo "                  <li><a href=\"/lvs/Servers\" ".$_menu4.">主机管理</a></li>\n";
echo "                  <li><a href=\"/lvs/Monitors\" ".$_menu5.">监控管理</a></li>\n";
echo "                  <li><a href=\"/lvs/hosts\" ".$_menu6.">生成hosts</a></li>\n";
echo "                  <li><a href=\"/lvs/check\" ".$_menu7.">主机探测</a></li>\n";
echo "                 </ul>\n";
echo "           </div>\n";
?>